package lab02.test11;

/**
 * Created by V555 on 2017/10/23.
 */
public class Test {
    public static void main(String[] args) {
        Rectangle rectangle=new Rectangle();
        rectangle.length=2;
        rectangle.width=3;
        System.out.println(rectangle.length);
        System.out.println(rectangle.width);
        System.out.println(rectangle.perimeter());
        System.out.println(rectangle.area());
        Square square=new Square();
        square.width=square.length=2;
        System.out.println(square.diagonal());
        System.out.println(square.length);
        System.out.println(square.area());
        System.out.println(square.perimeter());
    }
}
